var api = {
    //----------------------辅助接口---------------------
    pwdChangeVCode: "support/getPasswordChangeVCode.do",
    registerVCode: "support/getRegisterVCode.do",
    loginVCode: "support/getLoginVCode.do",
    resetPwdVCode: "support/getPasswordResetVCode.do",
    withdrawVCode: "support/getWithdrawVCode.do",

    //----------------------首页---------------------
    bannerList: "banner/list.do",
    levelList: "level/list.do",
    levelDetail: "level/detail.do",
    replenishList: "goods/replenishList.do",
    replenishDetail: "goods/replenishDetail.do",
    deliveryList: "goods/deliveryList.do",
    defaultShipping: "shipping/getDefault.do",
    wxPayConfig: "wx/config/getSdkConfig.do",
    doWxPay: "wx/pay/pay.do",
    upgradeList: "level/upgradeList.do",
    upgradeDetail: "level/upgradeDetail.do",
    teamTree: "team/list.do",
    myTeamSalesDetail:"team/mySalesDetail.do",
    prizeNum:"memberPrize/getPrizeNum.do",
    getPrizeList:"prize/getPrizeList.do",
    doPrize:"prize/doPrize.do",
    teamSales: "team/salesDetail.do",
    memberInventory: "inventory/list.do",

    //----------------------登录---------------------
    login: "member/login.do",
    logout: "member/logout.do",
    register: "member/register.do",
    resetPwd: "member/resetPassword.do",

    //----------------------个人中心---------------------
    memberInfo: "member/memberInfo.do",
    walletInfo: "wallet/detail.do",
    changeAvatar: "member/changeAvatar.do",
    changePwd: "member/changePassword.do",
    changeMemberInfo: "member/modifyMemberInfo.do",
    shippingList: "shipping/list.do",
    shippingEdit: "shipping/edit.do",
    shippingDelete: "shipping/delete.do",
    shippingSetDefault: "shipping/setDefault.do",
    shippingAdd: "shipping/add.do",
    accountList: "account/list.do",
    accountAdd: "account/add.do",
    accountDelete: "account/delete.do",
    accountChangeDefault: "account/changeDefault.do",
    accountGetDefault: "account/getDefault.do",
    withdraw: "log/withdraw/withdraw.do",
    withdrawLog: "log/withdraw/list.do",
    deliveryOrderList: "orderDelivery/orderList.do",
    deliveryOrderCreate: "orderDelivery/create.do",
    integralLogList: "log/integral/list.do",
    equityLogList: "log/equity/list.do",
    balanceEarningsRecord: "log/balance/earningsRecord.do",
    share: "member/share.do",
    upload: 'image/upload.do',

    //----------------------订单---------------------
    conventionOrderCreate: "orderConvention/orderCreate.do",
    conventionOrderCancel: "orderConvention/cancel.do",
    levelOrder: "orderConvention/levelOrder.do",
    goodsOrder: "orderConvention/goodsOrder.do",

    //支付
    transactionPay: "wx/pay/pay.do",
    getOpenId: "/auth/getOpenId.do",

    //物流列表
    shippingInfo: '/delivery/shippingInfo.do'

};
/* var host = 'http://localhost:8080/'; */
/* var host = 'http://v.asrobot.cn/'; */
var host = 'http://192.168.31.135:8080/';


for (var key in api) {
    if (api.hasOwnProperty(key)) {
        api[key] = host + api[key];
    }
}
export default api;
